
const CryptoJS = require('crypto-js')

let key = '';


function decrypt(key,text){
    let decrypted = CryptoJS.AES.decrypt(text,CryptoJS.enc.Utf8.parse(key),{
        iv:CryptoJS.enc.Utf8.parse(key),
        mode:CryptoJS.mode.CBC,
        padding:CryptoJS.pad.Pkcs7
    })
    return decrypted.toString(CryptoJS.enc.Utf8)
}

console.log(decrypt('1234567891234567','/AaUFNwtkubb8+C2OJBisYzEMvFOMGn8nKgGd0cTsEk='))
